package admin

import (
	"qmp_go_push/pkg/request"
	"qmp_go_push/pkg/response"
	"qmp_go_push/services/admin_service"
)

// ShowUserInfo 登陆用户的数据
func ShowUserInfo(requestParam *request.Request) response.Response {
	// 参数校验
	// 参数封装
	param := admin_service.ShowUserInfoParam{DBContext: requestParam.DBContext}
	// service调用
	resp, bizCode := param.ShowUserInfo()
	// 结构化数据返回
	return response.Response{Status: bizCode.Code, Message: bizCode.Message.Error(), Data: resp}
}
